//
//  VocherViewModel.h
//  meiyinxiang
//
//  Created by 媒印象 on 27/11/2017.
//  Copyright © 2017 hbjApple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "VocherModel.h"
typedef void (^finishBlock)(BOOL);
@interface VocherViewModel : NSObject
@property (nonatomic,strong) NSString *condition;//满金额条件
@property (nonatomic,strong) NSString *condition2;//满红包个数条件
@property (nonatomic,strong) NSString *vocherid;//券id
@property (nonatomic,strong) NSString *is_pick;//是否被领取
@property (nonatomic,strong) NSString *num;//金额
@property (nonatomic,strong) NSString *pid;
@property (nonatomic,strong) NSString *status;//
@property (nonatomic,strong) NSString *tid;
@property (nonatomic,strong) NSString *title;
@property (nonatomic,strong) NSString *useless;//是否可用
@property (nonatomic,strong) NSString *uselesstime;//过期日期
/**
 0是此券不可加钱，1为此券可以改变金额
 */
@property (nonatomic,strong) NSString *is_add;
- (id)initWithVocherModel:(VocherModel *)vocherModel;
@end

@interface VocherListViewModel : NSObject
@property (nonatomic,strong) NSMutableArray *vocherModels;
- (void)loadDataWithCompletion:(finishBlock)completion;

@end
